#include <stdio.h>
#include <string.h>
int main()
{
    char mb[20];
    int flag = 0;
    int len = 0;
    scanf("%s", mb);
    len = strlen(mb);
    if (len != 11)
        flag = 1;
    if (mb[0] != '1')
        flag = 1;
    for (int i = 0; i < len && flag == 0; i++)
    {
        if (mb[i] > '9' || mb[i] < '0')
            flag = 1;
    }
    if (flag == 1)
        printf("no");
    else
        printf("yes");
    return 0;
}